package cmcciot.onenet.nbapi.sdk.entity;

import cmcciot.onenet.nbapi.sdk.config.Config;

public class GetDeviceDetail extends CommonEntity {

    private String deviceId;

    public GetDeviceDetail(String deviceId) {
        this.deviceId = deviceId;
    }

    @Override
    public String toUrl() {
        StringBuilder url = new StringBuilder(Config.getDomainName());
        url.append("/devices/"+deviceId);
        return url.toString();
    }
}
